using System;

 namespace ClassEntities 
{
	 [Serializable]
	 public class tblMediaType
	{
	private int stt;
	private string ten_loai;
	private object iconMedia;
	public tblMediaType()
	{}
	public tblMediaType(int stt,string ten_loai,object iconMedia)
	{
	this.stt = stt;
	this.ten_loai = ten_loai;
	this.iconMedia = iconMedia;
	}
	public int Stt{
	get { return this.stt;}
	set { if(value==null) 
		throw new Exception("stt not allow nullvalue.");
		this.stt=value;
	}	}
	public string Ten_loai{
	get { return this.ten_loai;}
	set {this.ten_loai=value;}
	}
	public object IconMedia{
	get { return this.iconMedia;}
	set {this.iconMedia=value;}
	}
	public override string ToString(){
	return this.stt+"; "+this.ten_loai+"; "+this.iconMedia+"; ";
	}
	public override bool Equals(Object obj)
	{
	tblMediaType me=(tblMediaType)obj;
	bool ret=this.Stt.Equals(me.Stt);
	return ret;
	}
	public override int GetHashCode()
	{
	return this.Stt.GetHashCode();
	}

	}
} 